/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

$(document).ready(function(){
    
    $("#validarPerfil").validate({
        submitHandler: function(form) {
            
            if($('#genero').val()*1==0){
                alert('Debe elegir un genero.');
            }else if($('#profecion').val()*1==0){
                alert('Debe elegir una profecion.');
            }else{
                form.ajaxSubmit();
            }
        }
    });
    
});
